package com.example.shop.service;

import java.util.List;

import com.example.shop.pojo.Department;
import com.example.shop.pojo.DepartmentDto;
import com.example.shop.pojo.UserDepartment;
import com.example.shop.pojo.UserDto;

public interface DepartmentService {
	/**
	 * 添加部门
	 */
	String add(DepartmentDto departmentDto);
	/**
	 * 删除部门
	 */
	String delete(Department department);
	/**
	 * 查询部门:查询同级，同上司的部门基本信息
	 */
	List<DepartmentDto> selectBaseInfo(DepartmentDto department);
	/**
	 * 查询子部门信息
	 */
	List<Department> selectSDP(DepartmentDto department);
	/**
	 *  查询子部门人员基本信息
	 */
	List<UserDto> selectSSPI(DepartmentDto department);
	/**
	 * 更新部员
	 */
	String updateUserDepartment(UserDepartment userDepartment);
	/**
	 * 查询部员
	 */
	UserDepartment selectUserDepartment(UserDepartment userDepartment);

}
